

public class IntArray1 {
    public static void main(String[] args) {
        int[] a = new int[5];//数组的声明
        a[1] = 37;
        a[2] = 47;
        a[4] = a[1] * 2;
        System.out.println("a[0]=" + a[0]);//数组的构成元素会自动初始化0，默认值为0
        System.out.println(a[1]);
        System.out.println(a[2]);
        System.out.println(a[3]);
        System.out.println(a[4]);
    }
}
